package com.example.project.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.example.project.annotation.Excel;
import com.example.project.annotation.FieldMeta;
import com.example.project.core.domain.BaseEntity;

/**
 * 问题分类，定义项目中的问题分类对象 t_issue_categories
 * 
 * @author ruoyi
 * @date 2025-09-19
 */
public class IssueCategorie extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/** 问题分类ID，主键 */
	private Long id;

	/** 所属项目ID */
	@Excel(name = "所属项目ID")
	private Long projectId;
	
	private String projectName;

	/** 分类名称 */
	@Excel(name = "分类名称")
	private String name;

	/** 删除标志（0代表存在 2代表删除） */
	@FieldMeta(name = "del_flag", description = "删除标志（0代表存在 2代表删除）")
	private Long delFlag;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}

	public Long getProjectId() {
		return projectId;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public Long getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Long delFlag) {
		this.delFlag = delFlag;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("projectId", getProjectId()).append("name", getName()).toString();
	}
}
